package com.wang.designPattern.abstractFactory;

import com.wang.designPattern.factory.Shape;
import com.wang.designPattern.factory.ShapeType;

/**
 * @description
 * @Author wangzilong
 * @Date 2025/1/13 7:49
 */
public class ColorFactory extends AbstractFactory{
    @Override
    public Color getColor(ColorEnum color) {
        switch (color) {
            case RED:
                return new Red();
            case GREEN:
                return new Green();
            case YELLOW:
                return new Yellow();
            default:
                return null;
        }
    }

    @Override
    public Shape getShape(ShapeType shape) {
        return null;
    }
}
